/*
 * NetworkSettings.java
 *
 * Copyright 2007, 2008 Tiberiumlabs
 *
 * This file is part of Tiberiumlabs Lailaps.
 *
 * Tiberiumlabs Lailaps is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * Tiberiumlabs Lailaps is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.tiberiumlabs.lailaps.settings;

import java.util.ArrayList;

/**
 * @author <a href="mailto:paranoid.tiberiumlabs@gmail.com">Paranoid</a>
 */
public interface NetworkSettings {

    // <editor-fold defaultstate="collapsed" desc=" General settings ">

    int getDownloadBufferSize();

    int getMaxWorkingThreads();

    int getMaxSegmentsPerThread();

    public ArrayList<String> getCharsetList();

    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc=" HTTP settings ">

    public static final String DEFAULT_USER_AGENT = "Mozilla/5.0 (compatible; Lailaps "
            + Settings.getApplicationSettings().getVersion()
            + "; "
            + System.getProperty("java.vm.name")
            + ' '
            + System.getProperty("java.vm.version")
            + "; "
            + System.getProperty("os.name")
            + ") HttpClient/3.1";

    public String getUserAgent();

    public boolean isUseCustomAgent();

    public int getHttpTimeout();

    //</editor-fold>

    // <editor-fold defaultstate="collapsed" desc=" FTP settings ">

    public int getFtpModeType();

    public int getFtpTransferType();

    public boolean isFtpTcpNoDelay();

    public int getFtpDataTimeout();

    //</editor-fold>

    // <editor-fold defaultstate="collapsed" desc=" Proxy settings ">

    public boolean isProxyEnabled();

    public int getProxyType();

    public String getProxyHost();

    public int getProxyPort();

    public String getNoProxyFor();

    public boolean isProxyNeedAuthorization();

    public String getProxyLogin();

    public String getProxyPassword();

    //</editor-fold>

}
